// routes/vulnerability_routes.go
package routes

// GetVulnerability handles the GET /vulnerability/{id} route

import (
	"github.com/SiriusScan/sirius-api/handlers"
	"github.com/gofiber/fiber/v2"
)

type VulnerabilityRouteSetter struct{}

func (h *VulnerabilityRouteSetter) SetupRoutes(app *fiber.App) {
	vulnerabilityRoutes := app.Group("/vulnerability")
	vulnerabilityRoutes.Get("/:id", handlers.GetVulnerability)
	vulnerabilityRoutes.Post("/", handlers.AddVulnerability)
	vulnerabilityRoutes.Post("/delete", handlers.DeleteVulnerability)
}

// Note: GetAllVulnerabilities is host/vulnerabilities/all